package com.oa.ylms.apps.business.notice;

import java.util.Date;
import java.util.List;

import com.oa.ylms.apps.entity.notice.NoticeInfoValue;
import com.oa.ylms.apps.entity.notice.NoticeSectionValue;
import com.oa.ylms.apps.entity.notice.NoticeStaffValue;

public interface INoticeInfoService {

	public int addNotice(int staffId, String title, String place,
			Date startTime, Date endTime, String content, String postScript,
			String staffIds, String sectionIds) throws Exception;

	public String deleteNotice(String noticeIds) throws Exception;

	public String deleteNotice(int noticeId) throws Exception;

	public NoticeInfoValue queryNoticeInfoByNoticeId(int noticeId)
			throws Exception;

	public List<NoticeSectionValue> querySectionDetail(int noticeId)
			throws Exception;

	public List<NoticeStaffValue> queryStaffDetail(int noticeId)
			throws Exception;

	public List<NoticeInfoValue> queryNoticeInfoWithPage(String place,
			String title, int rows, int pageNo) throws Exception;

	public List<NoticeInfoValue> queryTipWithPage(int sectionId, int staffId,
			String title, String place,int rows, int pageNo) throws Exception;

	public List<NoticeInfoValue> queryNoticeInfoByStaffIdWithPage(int staffId,
			String place, String title, int rows, int pageNo) throws Exception;

	public int countTpages(String place, String title, int rows)
			throws Exception;

	public int countTpagesByTip(int sectionId, int staffId,String title, String place, int rows)
			throws Exception;

	public int countTpagesByStaffId(int staffId, String place, String title,
			int rows) throws Exception;
	
	public int getTotalNumber() throws Exception;
	
	public List<NoticeInfoValue> queryTip() throws Exception;
}
